﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ConsultarInformeAuditoria.aspx.cs" Inherits="SGC.Web.ModuloCalidad.Mantenimientos.ConsultarInformeAuditoria" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script src="/Scripts/Informe_Auditoria/validar.js" type="text/javascript"></script> 
    <script src="/Scripts/Comun/jquery.js" type="text/javascript"></script> 
    <script type="text/javascript" src="/Utilitarios/Js/jquery-ui-1.10.3.custom.js"></script>
    <script src="../../../Scripts/Comun/DataGridSingleSelection.js" type="text/javascript"></script>
    <form id="ConsultarInformeAuditoria" name="ConsultarInfomeAuditoria" action="">
        <div id = "dBody">
            <table width="100%">
                <tr><td colspan="7" style="height:25px"></td></tr>
                <tr>
                    <td style="width:15%">
                    </td>
                    <td align="center">
                        <asp:Button runat="server" ID="btnRegistrar" Text="Agregar" class="boton" 
                            Width="150px" onclick="btnRegistrar_Click" />
                    </td>
                    <td align="center">
                        <asp:Button runat="server" ID="btnModificar" Text="Modificar" class="boton" 
                            Width="150px" onclick="btnModificar_Click" />
                    </td>
                    <td align="center">
                        <asp:Button runat="server" ID="btnEliminar" 
                            Text="Eliminar" class="boton" 
                            Width="150px" 
                            OnClientClick = "return jsEliminarSC();" onclick="btnEliminar_Click" />
                    </td>
                    <td align="center" style="width: 61px">
                        <asp:Button ID="btnAprobar" runat="server" Text="Aprobar" class = "boton" 
                         Width="150px"  OnClientClick = "return jsAprobarSC();" onclick="btnAprobar_Click" />
                    </td>
                    <td align="center">
                        <asp:Button runat="server" ID="btnSalir"  Text="Salir" class="boton" 
                            Width="150px" onclick="btnSalir_Click" />
                    </td>
                    <td style="width:15%">
                    </td>
                </tr>
                <tr><td colspan="7" style="height:5px"></td></tr>
                <tr>
                    <td style="width:15%">
                    </td>
                    <td colspan="5" align="center" style="text-align: center">
                        <strong><span style="font-size: large; text-align: center;">Consultar Informe de Auditoria</span></strong>
                    </td>
                    <td style="width:15%">
                    </td>
                </tr>
                <tr><td colspan="7" style="height:5px"></td></tr>
                <tr>
                    <td style="width:15%; height: 17px;"></td>
                    <td style="height: 17px; text-align: right">
                        Informe de Auditoria:
                    </td>
                    <td style="height: 17px" colspan="3">
                        <asp:TextBox runat="server" ID = "txtBuscarInfome" Width="100%" ></asp:TextBox>
                    </td>                    
                    <td style="height: 17px" align="center" >
                        <asp:Button runat="server" ID="btnBuscarInfome" Text="Buscar" Width="80px" 
                            CssClass="boton" onclick="btnBuscarInfome_Click"/>
                    </td>
                    <td style="width:15%; height: 17px;"></td>
                </tr>
                <tr><td colspan="7" style="height:5px"></td></tr>
                <tr>
                    <td style="width:15%; height: 17px;"></td>
                    <td colspan="5" style="height:auto">
                        <asp:DataGrid runat="server" ID="dgdInformeAuditoria" Width="100%" 
                            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
                            BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" 
                            CellPadding="4" GridLines="Horizontal" >
                            <Columns>
                                <asp:TemplateColumn HeaderText="Itém">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chk_item" runat="server" CssClass="seleccion" />
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="Código">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCodigo" runat="server" Text='<%# bind("CODIGO_INFORME") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="Plan Auditoria" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblPlanAuditoria" runat="server" Text='<%# bind("PLAN_AUDITORIA.CODIGO_PLAN") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>
                                <asp:TemplateColumn HeaderText="Fecha Plan">
                                    <ItemTemplate>
                                        <asp:Label ID="lblFechaPlan" runat="server" Text='<%# bind("PLAN_AUDITORIA.FECHA", "{0:dd/MM/yyyy}") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateColumn>                                
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#333333" />
                            <HeaderStyle BackColor="#E20025" Font-Bold="True" Font-Italic="False" 
                                Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                                ForeColor="White" />
                            <ItemStyle BackColor="White" ForeColor="#333333" />
                            <PagerStyle BackColor="#E20025" Font-Bold="False" Font-Italic="False" 
                                Font-Overline="False" Font-Strikeout="False" Font-Underline="False" 
                                ForeColor="White" HorizontalAlign="Center" Mode="NumericPages" />
                            <SelectedItemStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                        </asp:DataGrid>
                    </td>
                    <td style="width:15%; height: 17px;"></td>
                </tr>
                <tr><td colspan="7" style="height:5px"></td></tr>
            </table>
        </div>
    </form>
</asp:Content>
